﻿using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.Attributes
{
    [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
    public class AuthAttribute : Attribute
    {
        public int SerialNumber
        {
            get; private set;
        }
        public string Desc
        {
            get; private set;
        }

        public AuthAttribute(int serialNumber, string desc)
        {
            this.SerialNumber = serialNumber;
            Desc = desc;
        }
        public AuthAttribute() : this(0, "")
        {
        }
        public AuthAttribute(string desc) : this(0, desc)
        {
        }
    }
}
